<div id="ContentMessage">
	<div id="NoteContentMessage">
		<?php echo $get_message_notnull ?>
	</div>
	
	<div id="ErrorContentMessage">
		<?php echo $error_ctext; ?>
		<?php echo $error_cimage; ?>
		<?php echo $error_clink; ?>				
	</div>
</div>	
<form  name='form_main' id="form_main" method="post" action="<?php echo $link_page; ?>" enctype="multipart/form-data">	
<div id="SiteContent_main">			
	
	
	<div id="EditContent">
		<table class="EditStyle01" >
			<tbody>								
			<tr>
				
						<td align="right" class="key"> <?php echo 'Logo'; ?><?php echo $get_icon_notnull; ?>
						</td>
						<td><input name="txt_cimage" type="file" id="txt_cimage" value ="" size="25" style="width:400px;"/>
						  <img  width="190" style="position:absolute; top:150px; left:510px;" height="80" src="<?php echo str_replace('admin','upload/taitro',base_url()).$txt_cimage; ?>"/>
							
						</td>
			</tr>
				
				
			<tr>		
						<td class="key" width="150" align="right" >
						<?php echo 'Tên'; ?><?php echo $get_icon_notnull; ?>				</td>
						<td width="400">
							
							<input style="width:250px;" type="text" width="" name="txt_cname" value="<?php echo $txt_cname; ?>">	
												</td>
			  </tr>
			
			
			<tr>
						<td align="right" class="key"> 
						<?php echo 'Link'; ?><?php echo $get_icon_notnull; ?> 				</td>
						<td width="400">
							<input style="width:250px;" type="text" width="" name="txt_clink" value="<?php echo $txt_clink; ?>">					</td>
			  </tr>

			  
			<tr>
					<td>&nbsp;</td>
					<td>
						<input type="button" name="btn_submit" style="width:80px;" value ="<?php echo $btn_update; ?>" 
							onclick ="js_SetSubmitButtonClick(this.form, this.name);" class="button"/>
													   
						<input name="btn_cancel" style="width:80px;" type="button" 
							   value = "<?php echo $btn_cancel; ?>"
							   onclick="location.href='<?php echo $link_cancel; ?> '" class="button"/>
					</td>
				</tr>			
							
			<tbody>				
		</table>
		
	</div>
	<input name="hidden_nid" type="hidden" value = "<?php echo $nid; ?>"  />
	<input name="hidden_event" type="hidden" value = "<?php echo $event; ?>"  />
	<input name="hidden_image_old" type="hidden" value = "<?php echo $txt_cimage; ?>"  />	
	<input type="hidden" name="hidden_button_click"  value = "" />	
</div>
</form>

<!-- BAT BUOC CAC FORM NHAP LIEU DEU PHAI DUNG SCRIPT NAY. -->

<script type="text/javascript" >
	document.form_main.txt_nid.focus();

function js_VerifyBeforeSubmit (obj_form, btn_name) 
	{
		if (document.form_main.txt_user_name.value=='')
			{
				document.form_main.txt_ccode.focus();
				return false;
			}
		if (document.form_main.txt_password.value=='')
			{
				document.form_main.txt_password.focus();
				return false;
			}
		return false;		
	}		

/*-------------------------------------------------------------------------------------
* Tokaban Corp 1509
* Package : TKB PHP SYSTEM CODE
*--------------------------------------------------------------------------------------
* huanlv77 - 1509/06/28.
*--------------------------------------------------------------------------------------
* Ham submit form co su dung su kien hidden de truyen bien flag dieu khien.
* Nhiem vu gan gia tri cho bien hidden dieu khien nut nhan submit cua form.
* Dung de controller nhan biet nut submit nao duoc nhan tren giao dien de xu ly tren server script.
* Ham nay duoc dung chung cho toan bo ung dung.
* Nen xay dung thanh chuan de tai su dung cho nhung du an khac.
*--------------------------------------------------------------------------------------*/
function js_SetSubmitButtonClick(obj_form, btn_name) 
	{
		obj_form.hidden_button_click.value = btn_name;
		obj_form.submit();		
	}	

</script>